package org.ccay.manage.hypertext.service;

import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import org.ccay.core.base.PageVO;
import org.ccay.core.base.PagedResult;
import org.ccay.core.exception.ApplicationException;
import org.ccay.hypertext.HyperText;
import org.ccay.security.annotation.SecurityBindingURL;
import org.ccay.security.annotation.SecurityOperation;
import org.ccay.security.annotation.SecurityResource;

@Path("/")
@Produces("application/json")
@SecurityResource(code="hypertextManagement",name="系统管理|超文本管理",desc="富文本提供在非停机模式下动态修改的资源的能力")
public interface IHypertextManageService {
	
	@GET
	@Path("/list/page/{pageSize}/{curPage}")
	@SecurityOperation(code="list",name="查询列表")
	@SecurityBindingURL("/manage/hypertext/listHyperText.html")
	PagedResult<? extends HyperText> findPagedHypertextList(@QueryParam("")HyperText hypertext,@PathParam("")PageVO page);
	
	
	@POST
	@Path("/create")
	@SecurityOperation(code="create",name="创建")
	void create(HyperText hypertext) throws ApplicationException;
	
	
	@DELETE
	@Path("/delete")
	@SecurityOperation(code="delete",name="删除")
	void delete(HyperText hypertext) throws ApplicationException;
	
	@GET
	@Path("/find")
	HyperText find(@QueryParam("")HyperText hypertext) throws ApplicationException;
	

}
